home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: presby.edu!jtbell
- From: jtbell@presby.edu (Jon Bell)
- Subject: Re: What are the differences between structures and classes in C++ ?
- Message-ID: <DpLny7.4s5@presby.edu>
- Date: Tue, 9 Apr 1996 14:51:43 GMT
- References: <4k5m65$av@hpscit.sc.hp.com> <marnoldDpHvED.E0t@netcom.com> <31696B8E.6461@datalytics.com> <3169F3F5.4D@tarley_pc.loc201.tandem.com>
- Organization: Presbyterian College, Clinton, South Carolina USA
-
- Anatoli Mandelchtam <tolik@tarley_pc.loc201.tandem.com> wrote:
- >Nope. Structs *are* classes since classes include all features of
- >structs _and_ additional functionality.
-
- What additional functionality? You can change all of your classes to
- structs if you like, and your program should compile exactly as it did
- before, provided that you add the "private" keyword at the beginning of
- each struct declaration if you've been using the default "private"
- behavior of classes.
-
- --
- Jon Bell <jtbell@presby.edu> Presbyterian College
- Dept. of Physics and Computer Science Clinton, South Carolina USA
-